//
//  StrategyForeignStrategyCollectionViewCell.m
//  ITrip
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyForeignStrategyCollectionViewCell.h"

@implementation StrategyForeignStrategyCollectionViewCell

- (void)dealloc
{
    [self.strategyTitleLabel release];
    [super dealloc];
}
- (void)setPagesParser:(StrategyPagesParser *)pagesParser
{
    self.strategyTitleLabel.text = pagesParser.strategy_title;
    
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createMyView];
    }
    return self;
}

- (void)createMyView
{
    self.strategyTitleLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.strategyTitleLabel];
    
    [self.strategyTitleLabel release];
}

- (void)layoutSubviews
{
    self.strategyTitleLabel.frame = CGRectMake(0, 0, self.frame.size.width , 50);
    self.strategyTitleLabel.backgroundColor = [UIColor clearColor];
    self.strategyTitleLabel.textAlignment = NSTextAlignmentCenter;
    
    self.backgroundColor = [UIColor colorWithRed:227/255.0 green:233/255.0 blue:240/255.0 alpha:1];
    
}



@end
